package com.zkb.modules.server.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;

/**
 * (TServerInfo)表实体类
 *
 * @author makejava
 * @since 2022-01-21 16:04:35
 */
@TableName("t_server_info")
public class TServerInfo extends Model<TServerInfo> {
    /**
     * id
     * java.lang.Long
     */
    @TableField("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 服务器ip
     * java.lang.String
     */

    @TableField("host")
    private String host;
    /**
     * 端口
     * java.lang.String
     */
    @TableField("port")
    private String port;
    /**
     * 登录用户
     * java.lang.String
     */
    @TableField("username")
    private String username;
    /**
     * 登录密码
     * java.lang.String
     */
    @TableField("password")
    private String password;
    /**
     * 拥有者
     * java.lang.Long
     */
    @TableField("owner_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long ownerId;
    /**
     * 密码加密混淆值
     * java.lang.String
     */
    @TableField("passsalt")
    private String passsalt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    public String getPasssalt() {
        return passsalt;
    }

    public void setPasssalt(String passsalt) {
        this.passsalt = passsalt;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

